<template>
  <div>
    <ul class="m-cvrlst">
      <li v-for="(item,index) in MvList" :key="index">
        <div class="u-cover">
          <img v-lazy="item.imgurl" alt="">
          <a href="#" class="msk"></a>
          <a href="#" class="icon-play" title="播放"></a>
        </div>
        <p class="des" :title="item.name">
          <a href="#" :title="item.name" class="name">{{item.name}}</a>
        </p>
      </li>


    </ul>
    </div>
</template>

<script>
import Pagination from "@/components/Pagination";
export default {
  name: "index",
  components:{
    Pagination
  },
  data(){
    return {
      MvList:[]
    }
  },
  methods:{
    async getArtistMV(){
      let result = await this.$API.reqArtistMv(this.$route.params.id,this.pageSize,(this.pageNo-1)*this.pageSize)

      this.MvList = result.data.mvs
    }
  },
  mounted() {
    this.getArtistMV()
  }
}
</script>

<style scoped lang="less">
.m-cvrlst {
  width: 664px;
  height: auto;
  overflow: hidden;
  margin-left: 35px;
  margin-top: 20px;

  li {
    float: left;
    display: inline-block;
    width: 166px;
    height: 170px;
    overflow: hidden;
    line-height: 1.4;

    .u-cover {
      width: 137px;
      height: 103px;
      position: relative;
      display: block;

      img {
        display: block;
        width: 100%;
        height: 100%;
      }

      .msk {
        width: 137px;
        height: 103px;
        position: absolute;
        top: 0;
        left: 0;
        display: inline-block;
        background-image: url("../../../assets/coverall.png");
        background-position: 0 -1170px;
      }

      .icon-play {
        width: 44px;
        height: 44px;
        top: 50%;
        left: 50%;
        margin: -22px 0 0 -22px;
        position: absolute;
        right: 10px;
        bottom: 5px;
        background-image: url("../../../assets/iconall.png");
        background-position: -30px -135px;
      &:hover{
          background-position: -30px -85px;

      }
      }

    }

    .des {
      line-height: 19px;
      max-height: 38px;
      margin: 8px 0 3px;
      font-size: 14px;

      .name {
        color: #000;
        display: inline-block;
        max-width: 100%;
        width: 137px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap: normal;
        vertical-align: middle;
      }
    }

    .dex {
      .time {
        color: #666;
      }
    }
  }
}
</style>